<!--container-->
<div class="container container-gary">
    <!-- member index -->
    <div class="m-ptb wrap clearfix">
        {include file="common@public/_personal_left" /}
        <div class="member-right">
            <div class="member-sign clearfix"><b>我的白条</b></div>
            <div class="member-order min-height">
                <div class="whitebar-prompt clearfix">
                    <div class="whitebar-con1">
                        <div><b>近七日待还款</b></div>
                        <div class="whitebar-num">
                            <div class="whitebar-n-txt red">￥3177.18</div>
                            <div class="whitebar-n-bg"><span style="width:44%;"></span></div>
                        </div>
                        <div>全部待还款：￥6871.46</div>
                        <div class="white-click"><span class="whitebar-color">合并付款</span></div>
                    </div>
                    <div class="whitebar-con2">
                        <div><b>白条可用额度</b></div>
                        <div class="whitebar-num">
                            <div class="whitebar-n-txt">￥3177.18</div>
                            <div class="whitebar-n-bg"><span style="width:65%;"></span></div>
                        </div>
                        <div>白条总额度：￥15000.00</div>
                    </div>
                </div>

                <div class="redpacked-title clearfix">
                    <div class="redpacked-t-l">
                        <span value="1">全部白条</span><span  value ="2" class="current">待还款</span><span value="3">已退款</span><span value="4">已还款</span>
                    </div>
                </div>

                <div class="whitebar-content">
                    <div class="member-thead clearfix">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="whitebar-t-w1">
                            <div class="checked-total w-i2"><input class="ck_all" tabindex="1" type="checkbox"><label for="">全选</label></div>
                        </div>
                        {/if}
                        <div class="whitebar-t-w2">还款单号</div>
                        <div class="whitebar-t-w3">订单时间</div>
                        <div class="whitebar-t-w4">支付方式</div>
                        <div class="whitebar-t-w5">还款状态</div>
                        <div class="whitebar-t-w6">还款时间</div>
                        <div class="whitebar-t-w7">还款金额</div>
                        <div class="whitebar-t-w7">操作管理</div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        {if condition="$type eq 2 or $type eq 0"}
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i2"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        {/if}
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">￥25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                </div>

                <div class="inpuire-b-select clearfix">
                    {if condition="$type eq 2 or $type eq 0"}
                    <div class="inpuire-left">
                        <div class="checked-total w-i2"><input class="ck_all" tabindex="1" type="checkbox"><label for="">全选</label></div>
                    </div>
                    {/if}
                    <div class="inpuire-center"><input type="button" value="合并付款"><input class="whitebar-del" type="button" value="批量删除"></div>
                    <div class="pager address-pager">
                        <a href="" title="First page">首页</a> <a href="" class="Previous page">上一页</a>
                        <a href="" title="">1</a> <span class="current">2</span> <span class="page-line">...</span> <span class="disabled">下一页</span> <span class="disabled">末页</span>
                        <em>到第</em><input class="page-input" type="text" /><i>页</i><input class="page-btn" type="button" value="确认" />
                    </div>
                </div>
            </div>

        </div>
    </div>

</div>

<!-- footer -->
<!--#include file="includes/foot.html"-->

<!-- cart del -->
<div class="total-mask hide"></div>
<div class="total-content hide">
    <div class="cart-d-content">
        <div class="cart-d-white">
            <div class="cart-d-top clearfix">
                <div class="cart-d-img"><img src="images/cart-del.png" /></div>
                <div class="cart-d-txt">
                    <h3>删除商品？</h3>
                    确认要删除该宝贝吗？
                </div>
                <div class="cart-d-icon"><i></i></div>
            </div>
            <div class="cart-d-a">
                <a class="cart-d-color">确认</a><a class="cart-d-gary">取消</a>
            </div>
        </div>
    </div>
</div>

<!--whitebar-->
<div class="total-content hide">
    <div class="cart-d-content w-tan">
        <div class="cart-d-white">
            <div class="custom-title1">
                合并支付 - 近七日代还款
                <div class="cart-d-icon"><i></i></div>
            </div>
            <div class="w-table">
                <div class="member-thead clearfix">
                    <div class="whitebar-t-w1-1">选择</div>
                    <div class="white-w1">订单号</div>
                    <div class="white-w1">应还款日</div>
                    <div class="white-w2">订单信息</div>
                    <div class="white-w1">应付金额</div>
                </div>
                <div class="white-content1">
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i1"><input tabindex="1" type="checkbox" class="ck_item1" name="items"></div>
                        </div>
                        <div class="add-i-total white-w1">OD1703200336</div>
                        <div class="add-i-total white-w1">2017-07-06</div>
                        <div class="add-i-total white-w2">杰丹180g圆领文化衫 76000</div>
                        <div class="add-i-total white-w1"><b class="wm-num">2060.00</b></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i1"><input tabindex="1" type="checkbox" class="ck_item1" name="items"></div>
                        </div>
                        <div class="add-i-total white-w1">OD1703200336</div>
                        <div class="add-i-total white-w1">2017-07-06</div>
                        <div class="add-i-total white-w2">杰丹180g圆领文化衫 76000</div>
                        <div class="add-i-total white-w1"><b class="wm-num">2060.00</b></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i1"><input tabindex="1" type="checkbox" class="ck_item1" name="items"></div>
                        </div>
                        <div class="add-i-total white-w1">OD1703200336</div>
                        <div class="add-i-total white-w1">2017-07-06</div>
                        <div class="add-i-total white-w2">杰丹180g圆领文化衫 76000</div>
                        <div class="add-i-total white-w1"><b class="wm-num">2060.00</b></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i1"><input tabindex="1" type="checkbox" class="ck_item1" name="items"></div>
                        </div>
                        <div class="add-i-total white-w1">OD1703200336</div>
                        <div class="add-i-total white-w1">2017-07-06</div>
                        <div class="add-i-total white-w2">杰丹180g圆领文化衫 76000</div>
                        <div class="add-i-total white-w1"><b class="wm-num">2060.00</b></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i1"><input tabindex="1" type="checkbox" class="ck_item1" name="items"></div>
                        </div>
                        <div class="add-i-total white-w1">OD1703200336</div>
                        <div class="add-i-total white-w1">2017-07-06</div>
                        <div class="add-i-total white-w2">杰丹180g圆领文化衫 76000</div>
                        <div class="add-i-total white-w1"><b class="wm-num">2060.00</b></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i1"><input tabindex="1" type="checkbox" class="ck_item1" name="items"></div>
                        </div>
                        <div class="add-i-total white-w1">OD1703200336</div>
                        <div class="add-i-total white-w1">2017-07-06</div>
                        <div class="add-i-total white-w2">杰丹180g圆领文化衫 76000</div>
                        <div class="add-i-total white-w1"><b class="wm-num">2060.00</b></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i1"><input tabindex="1" type="checkbox" class="ck_item1" name="items"></div>
                        </div>
                        <div class="add-i-total white-w1">OD1703200336</div>
                        <div class="add-i-total white-w1">2017-07-06</div>
                        <div class="add-i-total white-w2">杰丹180g圆领文化衫 76000</div>
                        <div class="add-i-total white-w1"><b class="wm-num">2060.00</b></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i1"><input tabindex="1" type="checkbox" class="ck_item1" name="items"></div>
                        </div>
                        <div class="add-i-total white-w1">OD1703200336</div>
                        <div class="add-i-total white-w1">2017-07-06</div>
                        <div class="add-i-total white-w2">杰丹180g圆领文化衫 76000</div>
                        <div class="add-i-total white-w1"><b class="wm-num">2060.58</b></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total w-i1"><input tabindex="1" type="checkbox" class="ck_item1" name="items"></div>
                        </div>
                        <div class="add-i-total white-w1">OD1703200336</div>
                        <div class="add-i-total white-w1">2017-07-06</div>
                        <div class="add-i-total white-w2">杰丹180g圆领文化衫 76000</div>
                        <div class="add-i-total white-w1"><b class="wm-num">2060.12</b></div>
                    </div>
                </div>

                <div class="inpuire-b-select clearfix">
                    <div class="inpuire-left">
                        <div class="checked-total w-i1"><input class="ck_all1" tabindex="1" type="checkbox">全部付清</div>
                    </div>
                    <div class="inpuire-center fr"><div class="white-money">应付总金额：<b id="money">0.00</b></div><input class="i-red" type="button" value="去支付" onclick="go_pay()"></div>
                </div>

            </div>
        </div>
    </div>
</div>


<!-- check -->
<script src="/Public/static/home/js/icheck.js"></script>

<!-- menu -->
<script type="text/javascript" src="/Public/static/home/js/menu.js"></script>
<script>
    $(function(){
        //top select
        $(".top-select").mouseover(function () {
            $(".top-s-text").show();
        })
        $(".top-select").mouseout(function () {
            $(".top-s-text").hide();
        })
        $(".top-s-text div").click(function () {
            var selecttext = $(this).text();
            $(".top-s-head span").text(selecttext);
            $(this).parent(".top-s-text").hide()
        })
        // top code
        var turn = function(target,time,opts){
            target.find('.top-code').hover(function () {
                $(this).find('.top-c-img').stop().animate(opts[0], time, function () {
                    $(this).hide().next().show();
                    $(this).next().animate(opts[1],time);
                });
            },function(){
                $(this).find('.top-c-text').animate(opts[0], time, function () {
                    $(this).hide().prev().show();
                    $(this).prev().animate(opts[1],time);
                });
            });
        }
        var verticalOpts = [{'width':0},{'width':'80px'}];
        turn($('.top-right'), 150, verticalOpts);
        //menu all
        $(".menu-all div").mouseenter(function () {
            $(this).addClass("current");
            $(".submenu").show();
        })
        $(".menu-all div").mouseleave(function () {
            $(this).removeClass("current");
            $(".submenu").hide();
        })
        $(".submenu").mouseenter(function(){
            $(this).show();
            $(".menu-all div").addClass("current")
        })
        $(".submenu").mouseleave(function(){
            $(this).hide();
            $(".menu-all div").removeClass("current")
        })
        //left submenu
        $(".submenu ul li").each(function () {
            var $this = $(this);
            var $children = $this.find('.submenu-pro');
            var $otherChildren = $this.siblings('li').find('.submenu-pro');
            var $childrenList = $children.children('.submenu-total');
            $this.on({
                'mouseenter': function () {
                    $children.css({ 'display': 'block', 'width': 221 * parseInt($childrenList.size()) });
                    $otherChildren.css('display', 'none');
                },
                'mouseleave': function () {
                    $children.css('display', 'none');
                }
            })
        });
        //input
        $('.checked-total.w-i1 input,.checked-total.w-i2 input').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%'
        });
        $('.ck_item').on('ifChanged', function (event) {
            showCheckbox();
        });
        $('.ck_item1').on('ifChanged', function (event) {
            showCheckbox1();
            wmoney()
        });
        $('.ck_all').on('ifChecked', function (event) {
            $('.checked-total.w-i2 input').iCheck('check');
        });
        $('.ck_all').on('ifUnchecked', function (event) {
            $('.checked-total.w-i2 input').iCheck('uncheck');
        });

        $('.ck_all1').on('ifChecked', function (event) {
            $('.checked-total.w-i1 input').iCheck('check');
        });
        $('.ck_all1').on('ifUnchecked', function (event) {
            $('.checked-total.w-i1 input').iCheck('uncheck');
        });
        //member left
        $(".member-l-title").click(function(){
            $(this).parent(".member-l-list").toggleClass("m-current");
            $(this).parent(".member-l-list").find("ul").slideToggle()
        })
        //content height
        $(".member-left").height($(".member-right").height())
        //cart del
        $(".whitebar-del").click(function(){
            $(".total-mask,.total-content").show()
        })
        $(".cart-d-icon i,.cart-d-gary").click(function(){
            $(".total-mask,.total-content").hide()
        })
        $(".white-click").click(function(){
            $(".total-content,.total-mask,.nicescroll-rails,.nicescroll-rails").show();
        })

    })
    function showCheckbox() {
        if ($('.ck_item').size() == $('.ck_item:checked').size()) {
            $('.ck_all').prop("checked", true).iCheck('update');
        } else {
            $('.ck_all').prop("checked", false).iCheck('update');
        }
    }
    function showCheckbox1() {
        if ($('.ck_item1').size() == $('.ck_item1:checked').size()) {
            $('.ck_all1').prop("checked", true).iCheck('update');
        } else {
            $('.ck_all1').prop("checked", false).iCheck('update');
        }
    }
    function wmoney(){
        var s=0;
        $(".white-content1 .address-item").each(function(){
            var checked = $(this).find(".whitebar-t-w1").find(".checked-total input:checkbox");
            if (checked.is(':checked')) {
                s += parseFloat($(this).children(".white-w1").find(".wm-num").html())
            }
        })
        $(".white-money").find("b").text(s.toFixed(2))
    }

   function go_pay(){
       $moneny=parseFloat($(".white-money").find("b").text());
       alert($moneny);
   }






    $(".redpacked-t-l span").each(function(){
        var tt="{$type}";
        var $type=$(this).attr('value');
        if(tt==$type){
            $(this).addClass("current").siblings().removeClass();
        }
        $(this).on('click',function(){
            window.location.href="/index/creditlimit/index/type/"+$type+'.html';
        });
    })



</script>
</body>
</html>